/**
 * Copyright &copy; 2012-2014 <a href="https://github.com.jims.base">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.patient.health.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 用药史Entity
 * @author xueyx
 * @version 2017-07-20
 */
public class DrugHist extends DataEntity<DrugHist> {
	
	private static final long serialVersionUID = 1L;
	private String baseInfo;		// 用户Id
	private String name;		// 药品名称
	private String hospital;		// 医疗机构
	private String channel;		// 药品使用途径
	private String describes;		// 备注
	private String dosage;		// 药品用量
	private String endDate;		// 用药结束时间
	private String frequency;		// 药品使用频率
	private String measured;		// 药品总剂量
	private String startDate;		// 用药开始时间
	private String unit;		// 药品单位
	
	public DrugHist() {
		super();
	}

	public DrugHist(String id){
		super(id);
	}

	@Length(min=0, max=255, message="用户Id长度必须介于 0 和 255 之间")
	public String getBaseInfo() {
		return baseInfo;
	}

	public void setBaseInfo(String baseInfo) {
		this.baseInfo = baseInfo;
	}
	
	@Length(min=0, max=255, message="药品名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="医疗机构长度必须介于 0 和 255 之间")
	public String getHospital() {
		return hospital;
	}

	public void setHospital(String hospital) {
		this.hospital = hospital;
	}
	
	@Length(min=0, max=255, message="药品使用途径长度必须介于 0 和 255 之间")
	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}
	
	@Length(min=0, max=255, message="备注长度必须介于 0 和 255 之间")
	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}
	
	@Length(min=0, max=255, message="药品用量长度必须介于 0 和 255 之间")
	public String getDosage() {
		return dosage;
	}

	public void setDosage(String dosage) {
		this.dosage = dosage;
	}
	
	@Length(min=0, max=255, message="用药结束时间长度必须介于 0 和 255 之间")
	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	
	@Length(min=0, max=255, message="药品使用频率长度必须介于 0 和 255 之间")
	public String getFrequency() {
		return frequency;
	}

	public void setFrequency(String frequency) {
		this.frequency = frequency;
	}
	
	@Length(min=0, max=255, message="药品总剂量长度必须介于 0 和 255 之间")
	public String getMeasured() {
		return measured;
	}

	public void setMeasured(String measured) {
		this.measured = measured;
	}
	
	@Length(min=0, max=255, message="用药开始时间长度必须介于 0 和 255 之间")
	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	
	@Length(min=0, max=255, message="药品单位长度必须介于 0 和 255 之间")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	
}